package com.zhoug.router3demo.ui;

import android.os.Bundle;
import android.widget.TextView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.zhoug.router3demo.Paths;
import com.zhoug.router3demo.R;

/**
 * @Author: zhoug
 * @Date: 2025-01-21
 * @Description:
 */
@Route(path = Paths.UserHomeActivity)
public class UserHomeActivity extends MyBaseActivity {
    private String userName;
    private TextView mTvUsername;

    @Override
    protected int getLayoutResId() {
        return R.layout.activity_user_home;
    }

    @Override
    protected void findViews() {

        mTvUsername = findViewById(R.id.tv_username);
    }

    @Override
    protected void onCreate1(Bundle savedInstanceState) {
        Bundle extras = getIntent().getExtras();
        if (null != extras) {
            userName = extras.getString("name");
        }
        mTvUsername.setText(userName);
    }

}
